﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MediaGarden.Formats;

namespace MediaGarden.Videos.Formats
{
    public class Mpeg4VideoFormat : MimeMediaFormat
    {
        public override string FormatName
        {
            // Note: There's also an Mpeg4 audio which is why we have this distinction
            get { return "Mpeg4Video"; }
        }

        public override string FormatDisplayName
        {
            get { return "MPEG4 Video / H.264"; }
        }

        public override string MediaStereotype
        {
            get { return "Video"; }
        }

        public override IEnumerable<string> FileExtensions()
        {
            return new[]{
                "mp4",
                "m4v",
                "f4v",
                "f4p",
                "mkv"};
        }

        public override IEnumerable<string> MimeTypes()
        {
            return new[] {
                "video/x-m4v",
                "video/mp4",
                "video/mp4v-es",
                // MKV
                "video/x-matroska"
            };
        }
    }
}